//
//  ShoppingList.m
//  HelloList2
//
//  Created for CSE494
//

#import "ShoppingList.h"


@implementation ShoppingList
@synthesize myList;
@synthesize noteList;
@synthesize noteTitle;
@synthesize note;

- (id)init
{
    self = [super init];
    if (self) {
        /* class-specific initialization goes here */
		
		self.myList = [NSMutableArray arrayWithCapacity:5];
    }
    return self;
}

- (void)addItem:(NSString*)item {
	if (item != nil) { //null
		[self.myList addObject:item];
		[self.noteList addObject:item];
		// java: this.myList.addObject(item);
				
	}
}

- (int)size {
	return [myList count];
}

@end
